package com.bytz.modules.hikvision.controller;

import com.bytz.modules.hikvision.service.IHikvisionService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HikvisionController {
    @Autowired
    IHikvisionService hikvisionService;

    @GetMapping("testsLogin")
    public int login_V40(@Param("ipadress") String ipadress, @Param("user") String user, @Param("psw") String psw, @Param("port") short port) {
        return hikvisionService.login_V40(ipadress, user, psw, port);
    }

    @GetMapping("testsSetupAlarmChan")
    public int setupAlarmChan_V41(@Param("luserId") int luserId) {
        return hikvisionService.setupAlarmChan_V41(luserId);
    }

}
